<? echo $this->render("grid.phtml"); ?>
<script>
alert(opener.document.getElementById("relatorio").html);
</script>